	$(function() {
			if (typeof ($.cookie('menusf')) == "undefined") {
				$("#menusf").attr("checked", true);
				$("#sidebar").attr("class", "menu-min");
			} else {
				$("#sidebar").attr("class", "");
			}
		});
	
		function cmainFrame(){
			var hmain = document.getElementById("mainFrame");
			var bheight = document.documentElement.clientHeight;
			hmain .style.width = '100%';
			hmain .style.height = (bheight  - 51) + 'px';
			var bkbgjz = document.getElementById("bkbgjz");
			bkbgjz .style.height = (bheight  - 41) + 'px';
			
		}
		cmainFrame();
		window.onresize=function(){  
			cmainFrame();
		};
		jzts();
		//返回到首页
		function logout(){
			$.ajax({
				type: "POST",
				url: locat+'/head/getBackUrl.do?tm='+new Date().getTime(),
		    	data: encodeURI(""),
				dataType:'json',
				cache: false,
				success: function(data){
					if(data.code == "success")
						{
							window.location.href = data.menu.URL;
						}
					else{
						alert("获取首页路径出错，请重试！");
					}
				}
			});
		}